package net.lab1024.smartadmin.module.business.atmosphere.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.smartadmin.module.business.atmosphere.domain.dto.AtmosphereQueryDTO;
import net.lab1024.smartadmin.module.business.atmosphere.domain.entity.AtmosphereEntity;
import net.lab1024.smartadmin.module.business.atmosphere.domain.vo.AtmosphereExcelVO;
import net.lab1024.smartadmin.module.business.atmosphere.domain.vo.AtmosphereVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * [ ���򻷾� ]
 *
 * @author wuhq
 * @version 1.0
 * @company ��������
 * @copyright (c)  ��������Inc. All rights reserved.
 * @date 2021-11-19 11:22:46
 * @since JDK1.8
 */
@Mapper
@Component
public interface AtmosphereDao extends BaseMapper<AtmosphereEntity> {

    /**
     * ��ҳ��ѯ
     * @param queryDTO
     * @return AtmosphereVO
    */
    IPage<AtmosphereVO> queryByPage(Page page, @Param("queryDTO") AtmosphereQueryDTO queryDTO);

    /**
     * ����idɾ��
     * @param id
     * @return
    */
    void deleteById(@Param("id")Long id);

    /**
     * ����id����ɾ��
     * @param idList
     * @return
    */
    void deleteByIdList(@Param("idList") List<Long> idList);

        /**
     * ��ѯ���е�������
     * @param queryDTO
     * @return
     */
    List<AtmosphereExcelVO> queryAllExportData(@Param("queryDTO")AtmosphereQueryDTO queryDTO);

        /**
         * ��ѯ������������
         * @param idList
         * @return
         */
    List<AtmosphereExcelVO> queryBatchExportData(@Param("idList")List<Long> idList);
}
